#include <iostream>
#include <string>
#include <sstream>
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
using namespace std;
    
bool charChecker2(char d)
    {
            if (isdigit(d))
            {
                    return true;
            }
            else if (d=='.')
            {
                return true;
            }
            else
            {
                    return false;
            }
    }    
     
bool IsNumeric (string m)
    {
            for (unsigned int i = 0;  i < m.length(); i++)
            {
                    if (charChecker2(m[i]) == false)
                    {
                            return false;
                    }
            }
            return true;
    }
/*float DigitCheck(string f)
{
    IsNumeric(f);
}
*/


// Usage notes
// This would allow one to check a string, as an input from the console, to be a numeric input or not
// In order to change it into an int or float, the following commands are used. 
//x = atoi(check.c_str());, v = strtol(check.c_str(),NULL,10); check being a string defined by the programmer.
// ATOI changes the input string into a int, 
// while strtol does the same thing except for the fact it changes it into a long integer instead. 
//For floats use strtof or atof
